
using QdbUnit.Extensions;
using Qdb;

namespace QdbUnit.Extensions
{
	public class ContainerServices
	{
		/// <exception cref="System.Exception"></exception>
		public static void WithContainer(IObjectContainer container, IContainerBlock block
			)
		{
			try
			{
				block.Run(container);
			}
			finally
			{
				container.Close();
			}
		}
	}
}
